﻿@model Stardust.Models.PerfilUsuarioBean

@{
    ViewBag.Title = "Modificar perfil";
}

<h2>Modificar perfil</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@if (!String.IsNullOrEmpty(ViewBag.results)) { 
    <div class="nNote nWarning hideit">
        <p><strong>AVISO: </strong>@ViewBag.results</p>
    </div>
}

@using (Html.BeginForm("Edit", "PerfilUsuario", FormMethod.Post, new { @class = "form" } ))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class = "widget" >
            <div class = "title" ><h6> Modificar Perfil Usuario </h6></div>

            <div class = "formRow" >
                @Html.LabelFor( model => model.nombre )
                <div class = "formRight" >
                    @Html.TextBoxFor( model => model.nombre )
                    @Html.ValidationMessageFor( model => model.nombre ) 
                </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" >
                @Html.LabelFor( model => model.descripcion )
                <div class = "formRight" >
                    @Html.TextBoxFor( model => model.descripcion )
                    @Html.ValidationMessageFor( model => model.descripcion )
                </div>
                <div class = "clear" ></div>
            </div>
        </div>
        <p>
            <input class = "redB" type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Regresar", "List")
</div>